package cn.jiyun.controller;



import cn.jiyun.Result.Result;
import cn.jiyun.service.BackstageUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 用户资料表（乘客与司机信息）  洪龙(BackstageUser)表控制层
 *
 * @author makejava
 * @since 2024-12-20 09:38:29
 */
@RestController
@RequestMapping("backstageUser")

public class BackstageUserController {

    @Autowired
    private BackstageUserService backstageUserService;

    @GetMapping("getDriversNum")
    public Result getDriversNum() {
        return backstageUserService.getDriversNum();
    }

    @GetMapping("getTravelNumber")
    public Result getTravelNumber() {
        return Result.ok(backstageUserService.getTravelNumber());
    }
    @GetMapping("getUnloadedNumber")
    public Result getUnloadedNumber() {
        return Result.ok(backstageUserService.getUnloadedNumber());
    }


    @GetMapping("getCount")
    public Result getCount(){
        return Result.ok(backstageUserService.getCount());
    }

}

